package com.wing.productionPlan.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.productionPlan.model.entity.ProductionPieceRateDetail;
import com.wing.productionPlan.model.entity.ProductionTheWorkOrder;
import com.wing.productionPlan.model.entity.ProductionWorkOrder;
import com.wing.productionPlan.model.request.ProductionPieceRateDetailForm;
import com.wing.productionPlan.model.response.ProductionPieceRateDetailVO;

import java.util.List;
import java.util.Map;

/**
 * 计件工资单明细-Service
 *
 * @author
 */
public interface ProductionPieceRateDetailService extends IService<ProductionPieceRateDetail> {

    /**
     * 添加
     *
     * @param productionPieceRateDetailForm
     * @return
     */
    int add(ProductionPieceRateDetailForm productionPieceRateDetailForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<ProductionPieceRateDetailVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<ProductionPieceRateDetailVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    ProductionPieceRateDetailVO get4appById(Long id);

    /**
     * 创建工资单明细
     *
     * @author zhutao
     * @since 2025-05-29 11:31
     * @param theWorkOrder,workOrder
     * @return int
     */
    void create(ProductionTheWorkOrder theWorkOrder, ProductionWorkOrder workOrder);
}
